#ifndef USBTHREAD_H
#define USBTHREAD_H
#include <QThread>
#include <QDebug>
#include <QMutex>
#include <QSemaphore>  
#include "pclCloud.h"
#include "myMutex.h"
#include "usbLib.h"

class UsbThread : public QThread
{
public:
	UsbThread(QObject* parent = nullptr);
	void regist(myMutex *rmutex, QSemaphore *samp, usbDrv *drv, char *rBuf);
	void setStatus(bool status);
	bool isStart();

public:
	myMutex         *m_rmutex;
	QSemaphore      *m_samp;
	bool             status;
	usbDrv          *m_Drv;
	char            *m_RBuffer;

protected:
	void run();
};

#endif // USBTHREAD_H